package net.iceflow.dunsel.commons;

/**
 * Adapts event notification to call the correct listener method.
 */
public interface ListenerCallAdapter<L, F> {

    /**
     * Performs the call to the listener on the correct method
     * @param event Event to send to the listener
     * @param listener The listener to notify
     */
    void callListener(Event<F> event, L listener);
}
